<template>
  <div class="container" @click="f1">
    <a href="https://baidu.com" @click.prevent.stop="f2">hello</a>
  </div>
</template>

<script>
export default {
  data () {
    return {

    };
  },
  methods: {
    f1 () {
      console.log(1);
    },
    f2 () {
      console.log(2);
    },
  },
}
</script>

<style scoped>

</style>